<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改功能操作</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
<!--
	function back(){
		window.location.href = "./function.do";
		window.location.target = "main";
	}
	
	function addSaleRecord(){
		window.location.href = "addSaleRecord.html";
		window.location.target = "main";
	}
	
	function updateSaleRecord(){
		window.location.href = "updateRecord.html";
		window.location.target = "main";
	}
	
	function updateAction(){
		var url = "updateAction.html";
		var dlgParam = "dialogHeight:150px;dialogWidth:280px;dialogTop:300px;dialogLeft:400px;status:no;help:no;scrollbars:no;";
		window.showModalDialog(url,"",dlgParam);
	}
-->
</script>
</head>
<body>
	<a class="common_title">>> 您现在的位置：基础设置 >> 修改功能</a>
	
	<div class="tools">
		<a class="back" href="javascript:back();" title="返回" hidefocus="true">返回</a>&nbsp;&nbsp;
	</div>
	
	<table class="table_input1" cellpadding="0" cellspacing="0" style="padding: 0 0 0 5px;">
		<tr>
			<td class="title3" width="15%">功能名称：</td>
			<td class="title3"><input class="input1" type="text" value="${function.functionName}"/></td>
			<td class="title3" width="18%">上级功能：</td>
			<td class="title3">无</td>
		</tr>
		<tr>
			<td class="title3" width="15%">功能排序：</td>
			<td class="title3" width="">
				<input class="input1" type="text" value="${function.functionOrder}"/>
			</td>
			<td class="title3" width="15%">URL：</td>
			<td class="title3" width="">
				<input class="input1" type="text" value="${function.url}"/>
			</td>
		</tr>
		<tr>
			<td class="title3" width="15%">是否有效：</td>
			<td colspan="3" class="title3" width="">
				<input type="radio"/>是&nbsp;&nbsp;
				<input type="radio"/>否
			</td>
		</tr>
	</table><br>
	
	<table class="table_style" style="text-align: center;">
		<tr>
			<td class="title" width="10%">序号</td>
			<td class="title">操作编码</td>
			<td class="title">操作名称</td>
			<td class="title">是否有效</td>
			<td class="title">操作</td>
		</tr>
		<c:forEach var="action" items="${actions}">
		<c:if test="${action.functionId == function.id}">
		<tr>
			<td>1</td>
			<td>${action.actionCode}</td>
			<td>${action.actionName}</td>
			<td>是</td>
			<td>
				<img class="btn_img" src="../../images/a_update.gif" onclick="updateAction()" title="修改">&nbsp;&nbsp;
				<img class="btn_img" src="../../images/a_del.gif" onclick="" title="删除">&nbsp;&nbsp;
			</td>
		</tr>
		</c:if>
		</c:forEach>
	</table>
</body>
</html>